﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="9.ascx.cs" Inherits="apps_uc_apps_3" %>
<%@ Register Src="~/uc/side_left.ascx" TagName="side_left" TagPrefix="uc1" %>
<%@ Register Src="~/uc/tienich_right.ascx" TagName="tienich_right" TagPrefix="uc1" %>
<div class="tienich">
    <div id="tienich_left">
        <h1>
            Codicil - United States</h1>
        <h2>
            Use a Codicil to make simple changes to your Last Will</h2>
        <p>
            Create your custom Codicil:
        </p>
        <ul id="contentList">
            <li>Easily add, change or delete existing clauses.</li>
            <li>Each state is extensively researched to ensure your Codicil is properly executed.</li>
            <li>Self-proving affidavit satisfies court requirements for witnesses where allowed.</li>
        </ul>
        <ul id="steps">
            <li>
                <div id="lst1">
                </div>
                Hoàn thành những câu hỏi gợi ý . Việc này mất khoảng 10 - 15 phút. </li>
            <li>
                <div id="lst2">
                </div>
                Chọn "Xem trước" để xem thử mẫu đơn vừa hoàn thành.</li>
            <li>
                <div id="lst3">
                </div>
                Chọn hình thức và lưu lại văn bản bạn cần.</li>
        </ul>
    </div>
    <uc1:tienich_right ID="tienich_right" runat="server" />
</div>
<div class="clear">
</div>
<div id="sidebar_left">
    <uc1:side_left ID="side_left1" runat="server" />
</div>
<div id="sidebar_right">
    <div class="item_r">
        <div class="wrap_cauhoi" style="width: 90%;">
            <div class="hint">
                <table style="width: 100%;">
                    <tr>
                        <td>
                            <strong>When could I use a Codicil?</strong>
                            <br />
                            - If you need to make a simple change to your Last Will;<br />
                            - If you want to change your executor; or<br />
                            - If you want to change a guardian;<br />
                            then you could use a Codicil.<br />
                            <strong>When should I write a new Last Will?</strong>
                            <br />
                            - If you need to make complex changes to your Last Will;<br />
                            - If you want to add or remove a beneficiary;<br />
                            - If your Last Will already has one or more codicils attached; or<br />
                            - If you married or got divorced since you wrote your Last Will; then you should<br />
                            <strong>WRITE A NEW WILL.<strong>
                        </td>
                    </tr>
                </table>
            </div>
            <!-- Start 1 Cauhoi -->
            <div class="cauhoi">
                <table style="width: 100%;">
                    <tr>
                        <td colspan="2">
                            <span class="cauhoi_title">Your Information</span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Enter the name and personal information of the person the Codicil is for.
                        </td>
                    </tr>
                    <tr>
                        <td class="cauhoi_ct">
                            Your Name:
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtYourName"></asp:TextBox><br />
                            Use your full legal name. (e.g. Samuel William Smith.)
                        </td>
                    </tr>
                    <tr>
                        <td class="cauhoi_ct">
                            Your City/Town:
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtCity"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="cauhoi_ct">
                            Your State:
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server">
                                <asp:ListItem Value="0">Chọn Bang</asp:ListItem>
                                <asp:ListItem Value="AL">Alabama</asp:ListItem>
                                <asp:ListItem Value="AK">Alaska</asp:ListItem>
                                <asp:ListItem Value="AZ">Arizona</asp:ListItem>
                                <asp:ListItem Value="AR">Arkansas</asp:ListItem>
                                <asp:ListItem Value="CA">California</asp:ListItem>
                                <asp:ListItem Value="CO">Colorado</asp:ListItem>
                                <asp:ListItem Value="CT">Connecticut</asp:ListItem>
                                <asp:ListItem Value="DE">Delaware</asp:ListItem>
                                <asp:ListItem Value="DC">District of Columbia</asp:ListItem>
                                <asp:ListItem Value="FL">Florida</asp:ListItem>
                                <asp:ListItem Value="GA">Georgia</asp:ListItem>
                                <asp:ListItem Value="HI">Hawaii</asp:ListItem>
                                <asp:ListItem Value="ID">Idaho</asp:ListItem>
                                <asp:ListItem Value="IL">Illinois</asp:ListItem>
                                <asp:ListItem Value="IN">Indiana</asp:ListItem>
                                <asp:ListItem Value="IA">Iowa</asp:ListItem>
                                <asp:ListItem Value="KS">Kansas</asp:ListItem>
                                <asp:ListItem Value="KY">Kentucky</asp:ListItem>
                                <asp:ListItem Value="LA">Louisiana</asp:ListItem>
                                <asp:ListItem Value="ME">Maine</asp:ListItem>
                                <asp:ListItem Value="MD">Maryland</asp:ListItem>
                                <asp:ListItem Value="MA">Massachusetts</asp:ListItem>
                                <asp:ListItem Value="MI">Michigan</asp:ListItem>
                                <asp:ListItem Value="MN">Minnesota</asp:ListItem>
                                <asp:ListItem Value="MS">Mississippi</asp:ListItem>
                                <asp:ListItem Value="MO">Missouri</asp:ListItem>
                                <asp:ListItem Value="MT">Montana</asp:ListItem>
                                <asp:ListItem Value="NE">Nebraska</asp:ListItem>
                                <asp:ListItem Value="NV">Nevada</asp:ListItem>
                                <asp:ListItem Value="NH">New Hampshire</asp:ListItem>
                                <asp:ListItem Value="NJ">New Jersey</asp:ListItem>
                                <asp:ListItem Value="NM">New Mexico</asp:ListItem>
                                <asp:ListItem Value="NY">New York</asp:ListItem>
                                <asp:ListItem Value="NC">North Carolina</asp:ListItem>
                                <asp:ListItem Value="ND">North Dakota</asp:ListItem>
                                <asp:ListItem Value="OH">Ohio</asp:ListItem>
                                <asp:ListItem Value="OK">Oklahoma</asp:ListItem>
                                <asp:ListItem Value="OR">Oregon</asp:ListItem>
                                <asp:ListItem Value="PA">Pennsylvania</asp:ListItem>
                                <asp:ListItem Value="RI">Rhode Island</asp:ListItem>
                                <asp:ListItem Value="SC">South Carolina</asp:ListItem>
                                <asp:ListItem Value="SD">South Dakota</asp:ListItem>
                                <asp:ListItem Value="TN">Tennessee</asp:ListItem>
                                <asp:ListItem Value="TX">Texas</asp:ListItem>
                                <asp:ListItem Value="UT">Utah</asp:ListItem>
                                <asp:ListItem Value="VT">Vermont</asp:ListItem>
                                <asp:ListItem Value="VA">Virginia</asp:ListItem>
                                <asp:ListItem Value="WA">Washington</asp:ListItem>
                                <asp:ListItem Value="WU">West Virginia</asp:ListItem>
                                <asp:ListItem Value="WI">Wisconsin</asp:ListItem>
                                <asp:ListItem Value="WY">Wyoming</asp:ListItem>
                            </asp:DropDownList>
                            <div id="rollover">
                                <a>
                                    <img src="<%=ResolveClientUrl("~/img/quest_mark.png")%>" />
                                    <span>The law of the jurisdiction where you are domiciled at the time you wrote your
                                        Last Will may be used to interpret your Last Will</span> </a>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cauhoi_ct">
                            Your Gender:
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownList2" runat="server">
                                <asp:ListItem Value="0">Male</asp:ListItem>
                                <asp:ListItem Value="1">Female</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
            <!-- End 1 Cauhoi -->
            <!-- Start 1 Cauhoi -->
            <div class="cauhoi">
                <table style="width: 100%;">
                    <tr>
                        <td colspan="2">
                            <span class="cauhoi_title">Signing Location</span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            The signing location is where the Codicil will be executed (signed).
                        </td>
                    </tr>
                    <tr>
                        <td>
                            City/Town where the Codicil is to be signed:
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtCityCodicilSigned"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="cauhoi_title">State where the Codicil is to be signed: </span>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownList3" runat="server">
                                <asp:ListItem Value="0">Chọn Bang</asp:ListItem>
                                <asp:ListItem Value="AL">Alabama</asp:ListItem>
                                <asp:ListItem Value="AK">Alaska</asp:ListItem>
                                <asp:ListItem Value="AZ">Arizona</asp:ListItem>
                                <asp:ListItem Value="AR">Arkansas</asp:ListItem>
                                <asp:ListItem Value="CA">California</asp:ListItem>
                                <asp:ListItem Value="CO">Colorado</asp:ListItem>
                                <asp:ListItem Value="CT">Connecticut</asp:ListItem>
                                <asp:ListItem Value="DE">Delaware</asp:ListItem>
                                <asp:ListItem Value="DC">District of Columbia</asp:ListItem>
                                <asp:ListItem Value="FL">Florida</asp:ListItem>
                                <asp:ListItem Value="GA">Georgia</asp:ListItem>
                                <asp:ListItem Value="HI">Hawaii</asp:ListItem>
                                <asp:ListItem Value="ID">Idaho</asp:ListItem>
                                <asp:ListItem Value="IL">Illinois</asp:ListItem>
                                <asp:ListItem Value="IN">Indiana</asp:ListItem>
                                <asp:ListItem Value="IA">Iowa</asp:ListItem>
                                <asp:ListItem Value="KS">Kansas</asp:ListItem>
                                <asp:ListItem Value="KY">Kentucky</asp:ListItem>
                                <asp:ListItem Value="LA">Louisiana</asp:ListItem>
                                <asp:ListItem Value="ME">Maine</asp:ListItem>
                                <asp:ListItem Value="MD">Maryland</asp:ListItem>
                                <asp:ListItem Value="MA">Massachusetts</asp:ListItem>
                                <asp:ListItem Value="MI">Michigan</asp:ListItem>
                                <asp:ListItem Value="MN">Minnesota</asp:ListItem>
                                <asp:ListItem Value="MS">Mississippi</asp:ListItem>
                                <asp:ListItem Value="MO">Missouri</asp:ListItem>
                                <asp:ListItem Value="MT">Montana</asp:ListItem>
                                <asp:ListItem Value="NE">Nebraska</asp:ListItem>
                                <asp:ListItem Value="NV">Nevada</asp:ListItem>
                                <asp:ListItem Value="NH">New Hampshire</asp:ListItem>
                                <asp:ListItem Value="NJ">New Jersey</asp:ListItem>
                                <asp:ListItem Value="NM">New Mexico</asp:ListItem>
                                <asp:ListItem Value="NY">New York</asp:ListItem>
                                <asp:ListItem Value="NC">North Carolina</asp:ListItem>
                                <asp:ListItem Value="ND">North Dakota</asp:ListItem>
                                <asp:ListItem Value="OH">Ohio</asp:ListItem>
                                <asp:ListItem Value="OK">Oklahoma</asp:ListItem>
                                <asp:ListItem Value="OR">Oregon</asp:ListItem>
                                <asp:ListItem Value="PA">Pennsylvania</asp:ListItem>
                                <asp:ListItem Value="RI">Rhode Island</asp:ListItem>
                                <asp:ListItem Value="SC">South Carolina</asp:ListItem>
                                <asp:ListItem Value="SD">South Dakota</asp:ListItem>
                                <asp:ListItem Value="TN">Tennessee</asp:ListItem>
                                <asp:ListItem Value="TX">Texas</asp:ListItem>
                                <asp:ListItem Value="UT">Utah</asp:ListItem>
                                <asp:ListItem Value="VT">Vermont</asp:ListItem>
                                <asp:ListItem Value="VA">Virginia</asp:ListItem>
                                <asp:ListItem Value="WA">Washington</asp:ListItem>
                                <asp:ListItem Value="WU">West Virginia</asp:ListItem>
                                <asp:ListItem Value="WI">Wisconsin</asp:ListItem>
                                <asp:ListItem Value="WY">Wyoming</asp:ListItem>
                            </asp:DropDownList>
                            <div id="rollover">
                                <a>
                                    <img src="<%=ResolveClientUrl("~/img/quest_mark.png")%>" />
                                    <span>Your Codicil must conform to the signing and witnessing (execution) requirements
                                        of the jurisdiction where your Codicil is to be signed. An affidavit will be provided
                                        that is specific to the signing requirements of the jurisdiction that you select.</span>
                                </a>
                            </div>
                            <span style="color: Red">(Required)</span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            The requirements for executing a Codicil can be slightly different in each jurisdiction.
                            The help provided for the questions that follow will be based on the jurisdiction
                            that you select for the Signing Location.
                        </td>
                    </tr>
                </table>
            </div>
            <!-- End 1 Cauhoi -->
            <!-- Start 1 Cauhoi -->
            <div class="cauhoi">
                <table style="width: 100%;">
                    <tr>
                        <td colspan="2">
                            <span class="cauhoi_title" colspan="2">Last Will : </span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            To avoid confusion you need to identify which Last Will this Codicil is intended
                            to amend
                        </td>
                    </tr>
                    <tr>
                        <td class="cauhoi_ct">
                            What is the signing date of your Last Will:
                        </td>
                        <td>
                            <asp:TextBox ID="txtDateLastWill" runat="server"></asp:TextBox>
                            <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDateLastWill"
                                Enabled="true" Format="MMMM dd, yyyy" TodaysDateFormat="MMMM dd, yyyy">
                            </ajaxToolkit:CalendarExtender>
                            <div id="rollover">
                                <a>
                                    <img src="<%=ResolveClientUrl("~/img/quest_mark.png")%>" />
                                    <span>Enter the execution date (signing date) of your Last Will to which this Codicil
                                        will apply.</span> </a>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
           
            <br />
            <div class="xacnhan" style="text-align: center;">
                <span>
                    <asp:Button ID="btn_sendkq" runat="server" Text="Xem Trước" PostBackUrl="~/apps/apps_rs/3_rs.aspx"
                        CssClass="css_nutkq" /></span>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#slnguoi").change(function () {
            var x = $('#slnguoi :selected').val();
            //alert(x);

            // set lai hien thi la none
            for (i = 3; i >= 1; i--) {
                document.getElementById("slnguoi" + i).style.display = "none";
                //alert(i);
            }
            // hien thi ra
            for (i = 1; i <= x; i++) {
                document.getElementById("slnguoi" + i).style.display = "block";
            }
            //set lai value cua textbox la ""
            for (i = 4; i > x; i--) {
                document.getElementById("txtslbt" + i).value = "";
            }
        });
        $("#slnguoiboithuong").change(function () {
            var x = $('#slnguoiboithuong :selected').val();

            for (i = 3; i >= 1; i--) {
                document.getElementById("nguoiboithuong" + i).style.display = "none";

            }
            for (i = 1; i <= x; i++) {
                document.getElementById("nguoiboithuong" + i).style.display = "block";
            }
            for (i = 4; i > x; i--) {
                document.getElementById("tenboithuong" + i).value = "";
            }
            for (i = 4; i > x; i--) {
                document.getElementById("diachiboithuong" + i).value = "";
            }
        });
        $("#amendopt").change(function () {
            var x = $('#amendopt :selected').val();

            for (i = 3; i >= 1; i--) {
                document.getElementById("amend" + i).style.display = "none";

            }
            for (i = 1; i <= x; i++) {
                document.getElementById("amend" + i).style.display = "block";
            }
            for (i = 4; i > x; i--) {
                document.getElementById("txtamend" + i).value = "";
            }
        });
    });

    function setVisDisp(objectId, visible) {
        var type;
        if (arguments.length == 3) type = arguments[2];
        else type = "block";
        if (document.getElementById && document.getElementById(objectId)) {
            document.getElementById(objectId).style.display =
                 (visible) ? type : "none";
        } else if (document.all && document.all(objectId)) {
            document.all(objectId).style.display =
                 (visible) ? type : "none";
        }
    }

    // kiem tra
    function checkInfo() {
        if (getObject('landlordNname1').value == "") {
            setVisDisp("errorMessageDisp1", true);
            getObject('landlordNname1').focus();

            if (getObject('tenantNname1').value != "")
                setVisDisp("errorMessageDisp2", false);

            check = false;
        }


        if (getObject('tenantNname1').value == "") {
            setVisDisp("errorMessageDisp2", true);
            getObject('tenantNname1').focus();

            if (getObject('landlordNname1').value != "")
                setVisDisp("errorMessageDisp1", false);


            check = false;
        }

        if (getFormObject("leaseamend", "stateProv").value == "sel") {
            setVisDisp("errorMessageDisp3", true);
            getFormObject('leaseamend', 'stateProv').focus();

            check = false;
        }

        else
            setVisDisp("errorMessageDisp3", false);

        if (getFormObject("leaseamend", "stateProv").value == "sel") {
            setVisDisp("errorMessageDisp4", true);
            getFormObject('leaseamend', 'stateProv').focus();

            check = false;
        }

        else
            setVisDisp("errorMessageDisp4", false);
    }
        
</script>
<style>
    #rollover a
    {
        text-decoration: none;
    }
    #rollover a span
    {
        visibility: hidden;
        display: block;
        position: absolute; /**adjust disjointed text position in % or px**/
        left: 65%;
        width: 300px;
        min-height: 100px;
        color: #0c5ec3;
        background-color: #fbfbfc;
        border: 2px solid #444445;
        padding: 5px;
        border-radius: 5px;
    }
    #rollover a:hover span
    {
        visibility: visible;
    }
    #rollover a:hover
    {
        text-decoration: none;
        color: #FF6600;
        visibility: visible;
    }
</style>
